package com.lrh.just.po;

import java.io.Serializable;

public class SmsTemplate implements Serializable {
    private Integer smsNo;

    private String templateKey;

    private String template;

    private static final long serialVersionUID = 1L;

    public Integer getSmsNo() {
        return smsNo;
    }

    public void setSmsNo(Integer smsNo) {
        this.smsNo = smsNo;
    }

    public String getTemplateKey() {
        return templateKey;
    }

    public void setTemplateKey(String templateKey) {
        this.templateKey = templateKey == null ? null : templateKey.trim();
    }

    public String getTemplate() {
        return template;
    }

    public void setTemplate(String template) {
        this.template = template == null ? null : template.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SmsTemplate other = (SmsTemplate) that;
        return (this.getSmsNo() == null ? other.getSmsNo() == null : this.getSmsNo().equals(other.getSmsNo()))
            && (this.getTemplateKey() == null ? other.getTemplateKey() == null : this.getTemplateKey().equals(other.getTemplateKey()))
            && (this.getTemplate() == null ? other.getTemplate() == null : this.getTemplate().equals(other.getTemplate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSmsNo() == null) ? 0 : getSmsNo().hashCode());
        result = prime * result + ((getTemplateKey() == null) ? 0 : getTemplateKey().hashCode());
        result = prime * result + ((getTemplate() == null) ? 0 : getTemplate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", smsNo=").append(smsNo);
        sb.append(", templateKey=").append(templateKey);
        sb.append(", template=").append(template);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}